import request from '@/utils/request'

export function permissionAPI() {
  return request({
    url: '/sys/permission',
    method: 'GET'
  })
}
// 新增
export function addPermissionAPI(data) {
  return request({
    url: '/sys/permission',
    method: 'POST',
    data
  })
}
// 获取员工基本信息
export function getimportExcelAPI(id) {
  return request({
    url: `/sys/permission/${id}`,
    method: 'get'
  })
}
// 修改
export function updatePermissionAPI(data) {
  return request({
    url: `/sys/permission/${data.id}`,
    method: 'put',
    data
  })
}
// 删除
export function delPermissionAPI(id) {
  return request({
    url: `/sys/permission/${id}`,
    method: 'DELETE'
  })
}
